
package xj.graph2d.tools;

import xj.app.DrawTool;
import xj.graph2d.DrawShape;
import xj.graph2d.SimpleDrawDocument;
import xj.graph2d.app.DrawApp;

public abstract class ToolHandler { 

  public void initHandler(DrawApp main, DrawTool tool) { 
    this.main = main;
    this.tool = tool;
  }

  abstract public void handleAction(SimpleDrawDocument doc, DrawShape shape); 

  protected DrawApp main;
  protected DrawTool tool;

}